package com.yc.cloud.admin.dto.request;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import jakarta.validation.constraints.NotBlank;

/**
 * 人脸检测请求DTO
 *
 * @author JackGu
 * @since 2025-11-05
 */
@Data
@ApiModel(value = "人脸检测请求DTO")
public class FaceDetectReqDTO {

    @ApiModelProperty(value = "图片Base64编码字符串", required = true, example = "/9j/4AAQSkZJRgABAQAAAQABAAD...")
    @NotBlank(message = "图片数据不能为空")
    private String image;

    @ApiModelProperty(value = "人脸ID（用于比对时指定已存储的人脸）", required = false, example = "user_001")
    private String faceId;

    @ApiModelProperty(value = "相似度阈值（0-1之间），默认0.6", required = false, example = "0.6")
    private Float threshold;
}

